﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCityLoginModule.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-09-16
//    @Email			:    445267987@qq.com
//    @Module           :    NFCityLoginModule
//    @Desc             :
//
// -------------------------------------------------------------------------

#pragma once

#include "NFCityDynamicModule.h"

class NFCityLoginModule : public NFCityDynamicModule
{
public:
    NFCityLoginModule(NFIPluginManager* p);
    ~NFCityLoginModule() override;
public:
    int Awake() override;
public:
    int OnHandleClientMessage(NFDataPackage& packet, NFCitySession* pSession, const proto_ff::Proto_CSReq& req) override;
public:
    int OnHeartBeatReq(NFDataPackage& packet, NFCitySession* pSession, const proto_ff::Proto_CSReq& req);
    int OnRTTSetClockReq(NFDataPackage& packet, NFCitySession* pSession, const proto_ff::Proto_CSReq& req);
    int OnLoginReq(NFDataPackage& packet, NFCitySession* pSession, const proto_ff::Proto_CSReq& req);
};